package com.aaa.ssm.query;

import lombok.Data;

import java.io.Serializable;

/**
 * @author lj
 * @date 2021/11/29 8:45
 */
@Data
public class BaseQuery implements Serializable {
    private Integer pageNo;
    private Integer pageCount;

    public Integer getIndex(){
        return (pageNo -1)*pageCount;
    }
}
